package client;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.EventObject;

import javax.jmdns.ServiceEvent;


public class Service implements Serializable{
	private static final long serialVersionUID = -9212175295713925993L;
	private String IPAddress;
	private int port;
	private String serviceName;
	private ServiceType type;
	public Service(String name, String IP, int port,int wei,int pri, ServiceType t){
		IPAddress = IP;
		serviceName = name;
		this.port = port;
		type = t;
	}
	public String toString(){
		return serviceName+ " "+ IPAddress +":"+port;
	}
	
	public ServiceType getType(){
		return type;
	}
	public String getServiceName() {
		return serviceName;
	}
	
	public String getIpAddress(){
		return IPAddress;
	}
	public int getPort(){
		return port;
	}
}
